# Maintainer: Pedro Filipe <xpecex@outlook.com>
pkgname=breezy
pkgver=3.1.0
pkgrel=0
pkgdesc="Decentralized revision control system"
url="https://www.breezy-vcs.org/"
arch="all"
license="GPL-2.0-or-later"
depends="py3-configobj py3-six"
makedepends="python3-dev py3-dulwich py3-fastimport py3-gpgme py3-paramiko
	py3-setuptools gettext"
subpackages="$pkgname-doc"
options="!check" # Suit test not work
source="https://launchpad.net/brz/${pkgver%.*}/$pkgver/+download/breezy-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
	ln -s brz "$pkgdir"/usr/bin/bzr # backwards compatibility

	find "$pkgdir"/usr/lib/python3*/site-packages -type d -name tests \
		-exec rm -rf {} +
}

doc() {
	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/man "$subpkgdir"/usr/share
	default_doc
}

sha512sums="40ea1ae364940ac8ff83d3f5da2437cc62fbda0ca98b3ae90a38dfad87555c3993b852ce186323454d7ab002ba4fbb3270e70953504e449c445efe147847204d  breezy-3.1.0.tar.gz"
